{% extends 'base.html' %}

{% block title %}灵感记录{% endblock %}

{% block content %}
<div class="card">
    <div class="card-header bg-primary text-white">
        <h5>新建灵感记录</h5>
    </div>
    <div class="card-body">
        <form method="POST" action="{{ url_for('save_inspiration') }}">
            <div class="mb-3">
                <label class="form-label">内容主题</label>
                <input type="text" class="form-control" name="title" required>
            </div>
            <div class="mb-3">
                <label class="form-label">发布平台</label>
                <select class="form-select" name="platform">
                    {% for platform in platforms %}
                    <option value="{{ platform.id }}">{{ platform.name }}</option>
                    {% endfor %}
                </select>
            </div>
            <div class="mb-3">
                <label class="form-label">文案风格</label>
                <select class="form-select" name="style">
                    {% for style in styles %}
                    <option value="{{ style.id }}">{{ style.style_name }}</option>
                    {% endfor %}
                </select>
            </div>
            <div class="mb-3">
                <label class="form-label">AI Prompt</label>
                <textarea class="form-control" name="prompt" rows="3"></textarea>
            </div>
            <div class="mb-3">
                <label class="form-label">字数要求</label>
                <input type="number" class="form-control" name="word_count">
            </div>
            <div class="mb-3">
                <label class="form-label">任务状态</label>
                <div class="form-check">
                    <input class="form-check-input" type="radio" name="status" value="暂存" checked>
                    <label class="form-check-label">暂存</label>
                </div>
                <div class="form-check">
                    <input class="form-check-input" type="radio" name="status" value="已发布">
                    <label class="form-check-label">已发布</label>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">保存记录</button>
        </form>
    </div>
</div>
{% endblock %}